package com.nmgsr.ptmsapp.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.nmgsr.beans.responsedao.ArticleRes;
import com.nmgsr.beans.responsedao.CompanyRes;
import com.nmgsr.beans.responsedao.SysRoleRes;
import com.nmgsr.ptmsapp.R;

public class ListAdapter extends BaseQuickAdapter <SysRoleRes, BaseViewHolder>{
    public ListAdapter() {
        super(R.layout.list_item);
    }
    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, SysRoleRes list) {
        baseViewHolder.setText(R.id.tv_name, list.getName());
        baseViewHolder.setText(R.id.tv_certificateCode, list.getId()+" ");
        baseViewHolder.setText(R.id.tv_contact_name, list.getCode()+" ");
        baseViewHolder.setText(R.id.tv_contact_phone, list.getTenantId()+" ");
    }
}
